<?php
$this->Html->addCrumb('Home', '/admin');
$this->Html->addCrumb('Lista Conteudos', array('action' => 'index'));
?><?php echo $this->Paginator->pagination(); ?>
<table class="table table-condensed table-hover table-bordered">
    <thead>
        <tr>
            <th><?php echo $this->Paginator->sort('titulo', __('Titulo')); ?></th>
            <th><?php echo $this->Paginator->sort('router', __('Rota')); ?></th>
            <th><?php echo $this->Paginator->sort('status', __('Situação')); ?></th>
            <th><?php echo $this->Paginator->sort('created', __('Criação')); ?></th>
            <th><?php echo $this->Paginator->sort('updated', __('Alteração')); ?></th>
            <th><?php echo $this->Paginator->sort('usuario_id', __('Usuário')); ?></th>
            <th><?php echo $this->Paginator->sort('conteudos_categoria_id', __('Categoria')); ?></th>
            <th><?php echo $this->Paginator->sort('pagina_id', __('Pagina')); ?></th>
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
    </thead>
    <tbody>
        <?php
        debug($conteudos);
        foreach ($conteudos as $conteudo) {
            ?>
            <tr>
                <td><?php echo h($conteudo['Conteudo']['titulo']); ?>&nbsp;</td>
                <td><?php echo h($conteudo['Conteudo']['router']); ?>&nbsp;</td>
                <td><?php echo h($conteudo['Conteudo']['status']); ?>&nbsp;</td>
                <td><?php echo h($conteudo['Conteudo']['created']); ?>&nbsp;</td>
                <td><?php echo h($conteudo['Conteudo']['updated']); ?>&nbsp;</td>
                <td><?php echo h($conteudo['Usuario']['usuario']); ?>&nbsp;</td>
                <td><?php echo h($conteudo['ConteudosCategoria']['categoria']); ?>&nbsp;</td>
                <td><?php echo h($conteudo['Pagina']['titulo']); ?>&nbsp;</td>
                <td class="actions">
                    <?php echo $this->Html->link(__('View'), array('action' => 'view', $conteudo['Conteudo']['id']), array('class' => 'btn btn-xs btn-info', 'icon' => 'fa fa-search')); ?>
                    <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $conteudo['Conteudo']['id']), array('class' => 'btn btn-xs btn-warning', 'icon' => 'fa fa-pencil')); ?>
                    <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $conteudo['Conteudo']['id']), array('class' => 'btn btn-xs btn-danger', 'icon' => 'fa fa-trash-o'), __('Are you sure you want to delete # %s?', $conteudo['Conteudo']['id'])); ?>
                </td>
            </tr>
        <?php } ?>
    </tbody>
</table>
<?php echo $this->Paginator->pagination(); ?>